package com.umgsai.thread.thread39;

public class ThreadB extends Thread { 
	@Override
	public void run() {
		try {
			System.out.println("B begin time = " + System.currentTimeMillis());
			Thread.sleep(5000);
			System.out.println("B end time = " + System.currentTimeMillis());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	synchronized public void bService(){
		System.out.println("bService time = " + System.currentTimeMillis());
	}
}
